﻿using System;
using NHibernate;

namespace Crowler.Model.CoreComponents.DataAccess
{
    public interface IUnitOfWork: IDisposable
    {
        void BeginTransaction();
        void CommitTransaction();
        bool IsInActiveTransaction { get; }
        IUnitOfWorkFactory Factory { get; }
        ISession Session { get; }
        bool IsExecutionException { set;  }
        void Flush();
    }
}
